//
//  UIColor+CLUtility.m
//  iOSSampleCode
//
//  Created by 梁慧聪 on 21/7/4.
//  Copyright © 2021年 梁慧聪. All rights reserved.
//

#import "UIColor+CLUtility.h"

@implementation UIColor (CLUtility)

+ (UIColor *)randomColor
{
    CGFloat hue = (arc4random() % 100) / 100.0f;
    CGFloat saturation = (arc4random() % 100) / 100.0f;
    CGFloat brightness = (arc4random() % 100) / 100.0f;
    
    return [UIColor colorWithHue:hue saturation:saturation brightness:brightness alpha:1.0f];
}

@end
